package com.czk.entity;

import lombok.*;

import java.util.List;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/12/12 15:18
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Teacher {
    private int id;
    private String name;
    /**
     * 一对多的添加，一个老师对应多个学生
     */
    private List<Student> students;
}
